package fun.hijklmn.magic.admin.server.properties;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description
 * @Author fs
 * @Date 2021/6/25 16:52
 * @Version 0.0.1-SNAPSHOT
 **/
@RefreshScope
@Data
@NoArgsConstructor
@Component
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {

    private String tokenHeader = "Authorization";

    private String tokenPrefix = "Bearer";

    private String secret;

    private String iss = "gfs";

    private String roleClaims = "role";

    private Long expire = 3600L;

    private Long rememberMeExpire = 604800L;

    private String[] ignoreUrls;

}
